import 'NetClient.dart';

class Request {
  final NetClient _netClient = NetClient();

  // 首页数据
  Future<Map<String, dynamic>> homeLinsts() async {
    return _netClient.get('homeLinsts', params: {});
  }

  // 获取文章列表
  Future<Map<String, dynamic>> getArticleList(Map<String, dynamic> par) async {
    return _netClient.post('getArticleList', body: par);
  }

  // 获取推荐banner
  Future<Map<String, dynamic>> getRecommendBanner(
    Map<String, dynamic> par,
  ) async {
    return _netClient.post('getRecommendBanner', body: par);
  }

  // 获取文章详情
  Future<Map<String, dynamic>> getInformationDetails(
    Map<String, dynamic> par,
  ) async {
    return _netClient.post('getInformationDetails', body: par);
  }
}
